import menuData from "./data/menu.json";
import loginData from "./data/login.json";
import userData from "./data/user.json";
import buttonsData from "./data/auth/buttons.json";
import department from "./data/user/department.json";
import role from "./data/role.json";
import roles from './data/roles.json';

// 定义Mock接口类型（覆盖常见HTTP方法，可根据需求扩展）
interface MockEndpoint {
  url: string; // 接口路径
  method: "get" | "post" | "put" | "delete" | "patch"; // 请求方法（联合类型约束）
  response: () => any; // 响应函数（返回任意类型，若需更严格可定义具体数据结构）
}

// 导出符合MockEndpoint类型的数组（类型注解确保结构正确）
export default [
  {
    url: "/api/geeker/menu/list",
    method: "get",
    response: () => menuData
  },
  {
    url: "/api/geeker/login",
    method: "post",
    response: () => loginData
  },
  {
    url: "/api/geeker/user/list",
    method: "post",
    response: () => userData
  },
  {
    url: "/api/geeker/role/department",
    method: "get",
    response: () => roles
  },

  {
    url: "/api/geeker/role/list",
    method: "post",
    response: () => role
  },
  {
    url: "/api/geeker/auth/buttons",
    method: "get",
    response: () => buttonsData
  },{
    url: "/api/geeker/user/department",
    method: "get",
    response: () => department
  }
] as MockEndpoint[];
